package com.firstwave.sfspringboot.web;

import com.firstwave.sfspringboot.util.CacheRedisUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: shafei
 * @Date: 2020-05-18 16:02
 * @Version: V1.0
 * @Description:
 */
@RestController
public class RedisController {

    @RequestMapping("/testRedis")
    public void testRedis(){
        CacheRedisUtils.set("name","shafei");
        CacheRedisUtils.set("age","11");
        System.out.println(CacheRedisUtils.get("name"));
        System.out.println(CacheRedisUtils.get("age"));
    }
}
